var e = require("../@babel/runtime/helpers/interopRequireDefault").default;

Object.defineProperty(exports, "__esModule", {
    value: !0
}), exports.chargeBroadband = function() {
    var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {};
    return r.default.post("/KCard/chg-assist/fee/discountcharge", e, {
        baseUrl: o(a)
    });
}, exports.discountuser = function() {
    var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, r = e.proId, s = void 0 === r ? "" : r, n = e.phoneNum, c = {
        proId: s
    };
    n && (c.phoneNum = n);
    return t.default.get("/KCard/chg-assist/fee/discountuser", c, {
        baseUrl: o(a),
        showError: !1
    });
}, exports.getArea = function() {
    return r.default.get("/areaData/area_v2.json", {}, {
        baseUrl: o("pro_txwk"),
        showError: !1,
        token: !1
    });
}, exports.getBanner = function(e) {
    return r.default.post("/KCard/commonBanner/list", {
        typeId: e
    }, {
        baseUrl: o("pro_txwk"),
        contentType: "application/x-www-form-urlencoded",
        showError: !1,
        token: !1
    });
}, exports.myBaseUrl = o;

var r = e(require("../service/index")), t = e(require("../service/auc_index")), a = "pro_kapi";

function o() {
    var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : "", r = arguments.length > 1 ? arguments[1] : void 0, t = "";
    switch (e) {
      case "local":
      case "dev":
        t = "http://localhost:3005";
        break;

      case "test":
        t = "";
        break;

      case "pro_txwk":
        t = "https://txwk.10010.com";
        break;

      case "pro_kapi":
        t = "https://kapi.10010.com";
        break;

      case "custom":
        t = r || t;
        break;

      default:
        t = "https://kapi.10010.com";
    }
    return t;
}